package com.sun.entity;

import java.util.List;

/**
 * @author wst
 * @create 2021-02-06
 */
    public class Role {
        private int id;
        private String name;
        private List<Permission> permissions;

        public Role() {
            super();
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<Permission> getPermissions() {
            return permissions;
        }

        public void setPermissions(List<Permission> permissions) {
            this.permissions = permissions;
        }

        @Override
        public String toString() {
            return "Role [id=" + id + ", name=" + name + ", permissions=" + permissions + "]";
        }
}
